import {defineStore} from 'pinia'

export default defineStore({
    id: 'wms-app',
    state: () => {
        return {
            token: '',
            userInfo: {
                id: 0,
                tel: '游客'
            },
            menuIsCollapse: false,
            tabs:[],
            po_item_data: [],
            oo_item_data: [],
            menuList:[]
        }
    },
    getters: {},
    actions: {},

    //@ts-ignore
    persist: {
        enabled: true,
        strategies: [
            {
                key: 'wms-app-key',
                storage: localStorage,
            }
        ]
    }
})

